Source Code Viewer - Example 4 - UserRatingDTO

package name.matthewgreet.example4.dto;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import name.matthewgreet.example4.dto.UserRatingDTO;


public class UserRatingDTO implements Serializable {
	private static final long serialVersionUID = 1365433661644816658L;

	public UserRatingDTO() {
		super();
	}
	
    public int gameId;
    public int userId;
	private BigDecimal rating;
	private Date recordDate;

	private GameDTO game;
	private UserDTO user;
	
	
	public int getGameId() {
		return gameId;
	}
	public void setGameId(int gameId) {
		this.gameId = gameId;
	}

    public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	
	public BigDecimal getRating() {
		return rating;
	}
	public void setRating(BigDecimal rating) {
		this.rating = rating;
	}
	
	public Date getRecordDate() {
		return recordDate;
	}
	public void setRecordDate(Date recordDate) {
		this.recordDate = recordDate;
	}

	
	public GameDTO getGame() {
		return game;
	}
	public void setGame(GameDTO game) {
		this.game = game;
	}
	
	public UserDTO getUser() {
		return user;
	}
	public void setUser(UserDTO user) {
		this.user = user;
	}
	
	
	
	@Override
	public String toString() {
		return "UserRatingDTO [gameId=" + gameId + ", userId=" + userId + ", rating=" + rating + ", recordDate="
				+ recordDate + "]";
	}
	
}